﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WatiNCF.Steps
{
    class FuncStep<TResult> : Step
    {
        public TResult Result { get; set; }
        public Func<TResult> Func { get; set; }

        public FuncStep(IPageController controller)
            : base(controller)
        {
        }

        public override void InvokeStep()
        {
            Result = Func();
        }
    }


}
